package cn.tedu.tmall.admin.mall.dao.repository;

import cn.tedu.tmall.admin.mall.pojo.po.MallCategoryPO;
import io.swagger.models.auth.In;

import java.util.List;

public interface IMallCategoryRepository {

    Integer countCategoryByName(String name);

    Integer save(MallCategoryPO mallCategoryPO);

    MallCategoryPO getCategoryById(Long parentId);

    void updateCategoryById(MallCategoryPO update);

    List<MallCategoryPO> getAll();

    List<MallCategoryPO> getTopCategory();

    List<MallCategoryPO> getChildrenCategory(Long parentId);

    MallCategoryPO selectById(Long categoryId);
}
